package notice_logic

import (
	"time"

	"gitee.com/Luna-CY/Golang-Project-Template/internal/context"
	"gitee.com/Luna-CY/Golang-Project-Template/internal/errors"
	"gitee.com/Luna-CY/Golang-Project-Template/model"
)

// SendEmailDelayTo 发送延迟邮件
func (cls *Notice) SendEmailDelayTo(ctx context.Context, to []string, cc []string, bcc []string, subject string, bodyType model.SystemSmtpLogBodyType, body string, attachments []*model.SystemObject, delayTo time.Duration) errors.Error {
	return cls.SendEmailTimeTo(ctx, to, cc, bcc, subject, bodyType, body, attachments, time.Now().Add(delayTo).Unix())
}
